package com.itheima.builder.demo1;

/**
 * @author zzw
 * @date 2025/9/27
 * @description 指挥者类
 */
public class Director {

    private final Builder mBuilder;

    public Director(Builder builder) {
        mBuilder = builder;
    }

    public Bike construct() {
        mBuilder.buildFrame();
        mBuilder.buildSeat();
        return mBuilder.createBike();
    }
}
